package pe.gob.proviasnac.app.dao; 

import java.util.List; 
import pe.gob.proviasnac.app.dto.ConsultaUbigeo; 
import pe.gob.proviasnac.app.dto.ConsultaUbigeoCriteria; 

public interface ConsultaUbigeoMapper { 
   List<ConsultaUbigeo> consultaUbigeo(ConsultaUbigeoCriteria criteria); 
} 
/* 

public ConsultaUbigeo consultaUbigeo(Integer idUbigeo) 
{ 
ConsultaUbigeoCriteria criteria = new ConsultaUbigeoCriteria(); 
criteria.setIdUbigeo(idUbigeo); 
 
List<ConsultaUbigeo> list = 
(ArrayList<ConsultaUbigeo>) this.selectByCriteria("ConsultaUbigeo", criteria); 
if(!list.isEmpty()){ 
return list.get(0); 
} 
return null; 
} 

public List<ConsultaUbigeo> consultaUbigeo(Integer idUbigeo) 
{ 
ConsultaUbigeoCriteria criteria = new ConsultaUbigeoCriteria(); 
criteria.setIdUbigeo(idUbigeo); 
 
List<ConsultaUbigeo> list = 
(ArrayList<ConsultaUbigeo>) this.selectByCriteria("ConsultaUbigeo", criteria); 
return list; 
} 


<mapper resource="pe/gob/proviasnac/app/mapper/ConsultaUbigeoMapper.xml"/> 

*/ 
